package base.day17.innerclass;

public class TestLambda1 {
    public static void main(String[] args) {
        userShowHandler(new ShowHandler() {
            @Override
            public void show() {
                System.out.println("匿名内部类中的show方法");
            }
        });
        userShowHandler(()-> System.out.println("lanmbda中的show方法"));
    }
    public static void userShowHandler(ShowHandler showHandler){

        showHandler.show();
    }
}
interface ShowHandler{
    void show();
}